<!DOCTYPE html>
<html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>">
<head>
<meta charset="UTF-8" />
<title><?php echo $title; ?></title>
<base href="<?php echo $base; ?>" />
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet.css" />
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-1.8.16.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.16.custom.css" />
<script type="text/javascript" src="catalog/view/javascript/common.js"></script>
<script type="text/javascript" src="catalog/view/javascript/script.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/style.css" />

<?php foreach ($scripts as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } ?>
<!--[if IE 7]> 
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie7.css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<script type="text/javascript" src="catalog/view/javascript/DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('#logo img');
</script>
<![endif]-->
<?php if ($stores) { ?>
<script type="text/javascript"><!--
$(document).ready(function() {
<?php foreach ($stores as $store) { ?>
$('body').prepend('<iframe src="<?php echo $store; ?>" style="display: none;"></iframe>');
<?php } ?>
});
//--></script>
<?php } ?>
<?php echo $google_analytics; ?>
</head>
<body>
<div id="wrap"><div id="wrapin"><div id="wrapbgr">
<div id="top">
    	<div id="topline">
        </div>
        
        <div id="logo">
        	<a href="/"></a>
        </div>
        
        <div id="menu">
        	<ul>
            <li><a id="Products" href="#">Products</a></li>
            <li><a href="/about">About</a></li>
            <li><a href="/contacts">Contacts</a></li>
            <?php if ($logged) { ?>
            <li><a href="/index.php?route=product/list">Product List</a></li>
            <?php } ?>
            </ul>
            
            <div id="dropDown">
            	<a href="/dinosaurs">
                    <div class="dinosaurs"><span></span>dinosaurs</div>
                </a>
                
                <a href="/airplanes">
                    <div class="airplanes"><span></span>airplanes</div>
                </a>
                
                <a href="/vehicles">
                    <div class="vehicles"><span></span>vehicles</div>
                </a>
                
                <a href="/ancient-ships">
                    <div class="ships"><span></span>ancient ships</div>
                </a>
                
                <a href="/small-houses">
                    <div class="houses"><span></span>small houses</div>
                </a>
                
                <a href="/buildings">
                    <div class="buildings"><span></span>buildings</div>
                </a>
                
                <a href="/wind-mills">
                    <div class="mills"><span></span>wind mills</div>
                </a>
                
                <a href="/birdhouses">
                    <div class="birdhouses"><span></span>bird houses</div>
                </a>
                
                <a href="/custom">
                    <div class="custom"><span></span>custom</div>
                </a>
            </div>
        </div>
        
        <div id="login">
        	
            <?php if (!$logged) { ?>
				<?php echo $text_welcome; ?>
            <?php } else { ?>
            	<?php echo $text_logged; ?><br>
				<?php echo $cart; ?>
            <?php } ?>
        </div>
        
        <?php if (!$logged) { ?>
        <div id="search">
        	<div class="button-search"></div>
    		<input type="text" name="search" placeholder="<?php echo $text_search; ?>" value="<?php echo $search; ?>" />
        </div>
        <?php } ?>
        
    </div>



<?php if ($error) { ?>
    
    <div class="warning"><?php echo $error ?><img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>
    
<?php } ?>
<div id="notification"></div>
